<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>打印采购清单</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<STYLE type=text/css>
	BODY {
		TEXT-ALIGN: center;
	}
	TABLE {
		BORDER-BOTTOM: black 2px solid; TEXT-ALIGN: center; BORDER-LEFT: black 2px solid; WIDTH: 700px; BORDER-COLLAPSE: collapse; FONT-SIZE: small; BORDER-TOP: black 2px solid; BORDER-RIGHT: black 2px solid;
	}
	TD {
		HEIGHT:30px; BORDER-BOTTOM: black 2px solid; BORDER-LEFT: black 2px solid; BORDER-TOP: black 2px solid; BORDER-RIGHT: black 2px solid;
	}
	.center {
		TEXT-ALIGN: center;
	}
	.left {
		TEXT-ALIGN: left;
	}
	.size1 {
		WIDTH: 60px;
	}
	.size2 {
		WIDTH: 100px;
	}
	</STYLE>
  </head>
  
  <body>
    <TABLE>
  		<TBODY>
  			<TR>
    			<TD colSpan=16>采购清单</TD>
    		</TR>
 			<TR>
    			<TD class=size1>采购单号</TD>
   				<TD colSpan=4 class=center>${purchase.purchase_id }</TD>
    			
   		 		<TD colspan=2>经办人</TD>
   		 		<TD colSpan=2 class=size1>${purchase.person}</TD>
   	 			<TD colSpan=2>采购日期</TD>
    			<TD  colSpan=5>${purchase.date }</TD>
    		</TR>
    		<!--  
    		<TD colSpan=12 align=center><div style="float:left;width:28px;">&nbsp;</div></TD>
    		-->
  			<TR>
   				<TD>编号</TD>
    			<TD colSpan=2>料号</TD>
    			<TD colSpan=2>材料名称</TD>
    			<TD colSpan=2>供应商名称</TD>
    			<TD>数量</TD>
    			<TD class=size1 >单位</TD>
    			<TD colSpan=7>备注</TD>
    			
    		</TR>
  			
  			<c:forEach items="${pager.data}" var="purchaseDetailView" varStatus="s">
			<c:if test="${purchaseDetailView.id!= 0}" >
			<TR>
				<TD>${s.index+1 }</TD>
    			<TD colSpan=2>${purchaseDetailView.material_id}</TD>
    			<TD colSpan=2>${purchaseDetailView.material_name}</TD>
    			<TD colSpan=2>${purchaseDetailView.supplier_name}</TD>
    			<TD>${purchaseDetailView.amount}</TD>
    			<TD class=size1 >${purchaseDetailView.unit}</TD>
    			<TD colSpan=7>${purchaseDetailView.comments}</TD>
				
			</TR>
	
			</c:if>
			</c:forEach>
		<!-- 	-->
  			<TR>
   				<TD colSpan=18 align=left><div style="float:left;width:16px;">&nbsp;</div>备注：${purchase.comments}</TD>
   			</TR>
   		</TBODY>
   	</TABLE>
  </body>
</html>
